package com.dzpk.gameserver.module.main;

/**
 * Created by somnus on 16/10/8.
 */


import com.dzpk.gameserver.module.main.pocer.Pocer;
import com.dzpk.gameserver.module.player.Player;


public class UserInfo {
    private long userId; //用户ID
    private String nikeName; //昵称
    private String head; //头像
    private int sex; //性别
    private int rank; //等级
    private int chip; //筹码
    private int win; //胜
    private int lose; //负
    private String nutHand; //最大手牌
    private int allInnings; //已玩局数
    private int highestHave; //最高拥有
    private int biggestwinRate; //最大赢取
    private int nutHandType;//最大手牌类型

    private int jifen1;//游戏场基本
    private int jifen2;//比赛场积分

    private int zoujifen;//周积分
    private int yuejifen;//月积分

    private int isBiggestwinRate; //本次是否最大赢取 -1 不是 1是

    private Player player;


    /**
     * 本次是否最大赢取 -1 不是 1是
     *
     * @return
     */
    public int getIsBiggestwinRate() {
        return isBiggestwinRate;
    }

    /**
     * 本次是否最大赢取 -1 不是 1是
     *
     * @param isBiggestwinRate
     */
    public void setIsBiggestwinRate(int isBiggestwinRate) {
        this.isBiggestwinRate = isBiggestwinRate;
    }

    private int roomId;
    private int roomPath;
    private long onlinetTime;//最后在线时间

    private Pocer[] pocer = new Pocer[5]; //数据库中最大牌的那5张牌
    private int pocerType; //最大牌类型

    private int jixiren; //机器人标识符 0正常 1机器人
    private int reboitPersionType;//机器人 对应的房间类型


    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public int getRoomPath() {
        return roomPath;
    }

    public void setRoomPath(int roomPath) {
        this.roomPath = roomPath;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getNikeName() {
        return nikeName;
    }

    public void setNikeName(String nikeName) {
        this.nikeName = nikeName;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public int getChip() {
        return chip;
    }

    public void setChip(int chip) {
        this.chip = chip;
    }

    public int getWin() {
        return win;
    }

    public void setWin(int win) {
        this.win = win;
    }

    public int getLose() {
        return lose;
    }

    public void setLose(int lose) {
        this.lose = lose;
    }

    public String getNutHand() {
        return nutHand;
    }

    public void setNutHand(String nutHand) {
        this.nutHand = nutHand;
    }

    public int getAllInnings() {
        return allInnings;
    }

    public void setAllInnings(int allInnings) {
        this.allInnings = allInnings;
    }

    public int getHighestHave() {
        return highestHave;
    }

    public void setHighestHave(int highestHave) {
        this.highestHave = highestHave;
    }

    public int getBiggestwinRate() {
        return biggestwinRate;
    }

    public void setBiggestwinRate(int biggestwinRate) {
        this.biggestwinRate = biggestwinRate;
    }

    public long getOnlinetTime() {
        return onlinetTime;
    }

    public void setOnlinetTime(long onlinetTime) {
        this.onlinetTime = onlinetTime;
    }

    public Pocer[] getPocer() {
        return pocer;
    }

    public void setPocer(Pocer[] pocer) {
        this.pocer = pocer;
    }

    public int getPocerType() {
        return pocerType;
    }

    public void setPocerType(int pocerType) {
        this.pocerType = pocerType;
    }

    public int getNutHandType() {
        return nutHandType;
    }

    public void setNutHandType(int nutHandType) {
        this.nutHandType = nutHandType;
    }

    public int getJifen1() {
        return jifen1;
    }

    public void setJifen1(int jifen1) {
        this.jifen1 = jifen1;
    }

//    public void setAllJifen(int jifen) {
//        jifen1 = jifen1 + jifen;
//        zoujifen = zoujifen + jifen;
//        yuejifen = yuejifen + jifen;
//        if (jifen > 0 && userProductByList != null && userProductByList.isVip()) {
//            jifen1 = jifen1 + jifen;
//            zoujifen = zoujifen + jifen;
//            yuejifen = yuejifen + jifen;
//        }
//    }

    public int getJifen2() {
        return jifen2;
    }

    public void setJifen2(int jifen2) {
        this.jifen2 = jifen2;
    }

    public int getZoujifen() {
        return zoujifen;
    }

    public void setZoujifen(int zoujifen) {
        this.zoujifen = zoujifen;
    }

    public int getYuejifen() {
        return yuejifen;
    }

    public void setYuejifen(int yuejifen) {
        this.yuejifen = yuejifen;
    }

    /**
     * 根据积分获取等级
     *
     * @return
     */
//    public int getDengji() {
//        return DengJiUtil.getDengKJ(this.jifen1);
//    }

    /**
     * 机器人标识符 0正常 1机器人
     *
     * @return
     */
    public int getJixiren() {
        return jixiren;
    }

    /**
     * 0正常 1机器人
     *
     * @param jixiren
     */
    public void setJixiren(int jixiren) {
        this.jixiren = jixiren;
    }

    public int getReboitPersionType() {
        return reboitPersionType;
    }

    public void setReboitPersionType(int reboitPersionType) {
        this.reboitPersionType = reboitPersionType;
    }


    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }
}

